<c:forEach items="${message.dialogueActs}" var="da" varStatus="status">
				<c:if test="${da.user.userId == anno_user.userId}">
    <table class="inner" onMouseOver="updateMessage(<c:out value='${status.index}'/>, 'none')">
						<tr>
							<th>ID:</th>
							<td colspan="2"><c:out value="${da.dialogueActId}" /> <a
								href="annotatemessage.html?messageId=<c:out value='${message.messageId}'/>&delDaId=<c:out value='${da.dialogueActId}'/>">[delete]</a><br></br>
							</td>
							<th>Created:</th>
							<td><c:out value="${da.createdAt}" /></td>
						</tr>
						<tr>
						<th>User: </th>
						<td colspan="2"><c:out value="${da.user.userName}"></c:out>
						</td>
						<th>Priority:</th>
					<td>
					<form:select path="dialogueActArray[${status.index}].priority">
						<form:option value="1" label="Primary" />
						<form:option value="2" label="Secondary" />
					</form:select>					
					</td>
				</tr>
				<tr>
					<th>Text Segment</th>
					<td>
					Start with:
						</td>						
						<td>
					<form:select onchange="updateMessage(${status.index}, 'start')" path="dialogueActArray[${status.index}].startIndex">
						<form:option value="null" label="Please Select" />
						<form:options items="${message.wordList}" itemValue="index"
							itemLabel="word" />
					</form:select>
						</td>
						<td>
					End with:
						</td>						
						<td>
					<form:select onchange="updateMessage(${status.index}, 'end')" path="dialogueActArray[${status.index}].endIndex">
						<form:option value="null" label="Please Select" />
						<form:options items="${message.wordList}" itemValue="index"
							itemLabel="word" />
					</form:select>
					</td>
				</tr>
				<tr>
					<th>Dialogue Act</th>
					<td>
						Function:  
						</td>						
						<td>
         <form:select  onchange="updateMessage(${status.index}, 'foo')" path="dialogueActArray[${status.index}].function">    		
            <option value="null">Please select</option>
            <c:forEach items="${da_functions}" var="daLabel">
              <option value='<c:out value="${daLabel.dialogueActLabelId}"/>'
                <c:if test="${da.function.dialogueActLabelId == daLabel.dialogueActLabelId}">selected</c:if>>
                <c:out value="${daLabel.label}" />
              </option>
            </c:forEach>
          </form:select>
						</td>
						<td>
					  Domain:
						</td>						
						<td>
         <form:select path="dialogueActArray[${status.index}].domain">
            <option value="null">Please select</option>
            <c:forEach items="${da_domains}" var="daLabel">
              <option value='<c:out value="${daLabel.dialogueActLabelId}"/>'
                <c:if test="${da.domain.dialogueActLabelId == daLabel.dialogueActLabelId}">selected</c:if>>
                <c:out value="${daLabel.label}" />
              </option>
            </c:forEach>
          </form:select>
					</td>
				</tr>
				<tr>
					<th rowspan="2">Adjacency</th>
					<td>
						Relationship:					  
						</td>						
						<td colspan="3">
						  <form:select path="dialogueActArray[${status.index}].adjacency">
                <option value="null">Please select</option>
                <c:forEach items="${adjacencies}" var="adj">
                  <option value='<c:out value="${adj.adjacencyId}"/>'
                    <c:if test="${da.adjacency.adjacencyId == adj.adjacencyId}">selected</c:if>>
                    <c:out value="${adj.label}" />
                  </option>
                </c:forEach>
              </form:select>
			    </td>
			  </tr>
			  <tr>
			    <td>
				    To:
				  </td>						
				  <td colspan="3">
						<form:select path="dialogueActArray[${status.index}].adjacentDialogueAct">
              	<option value="null">Please select</option>
                <c:forEach items="${message.conversation.sortedDialogueActs}" var="sda">
                  <option value='<c:out value="${sda.dialogueActId}"/>'
                    <c:if test="${da.adjacentDialogueAct.dialogueActId == sda.dialogueActId}">selected</c:if>>
                    <c:out value="${sda.textForSelectOption}" />
                  </option>
                </c:forEach>
              </form:select>
				</tr>
			</table>
			</c:if>
      </c:forEach>
